package com.qf.day07.poly02;

/**
 * 图形父类
 */

public abstract class TuXing {
    //图形名称
    private String name;
    //图形周长
    public abstract double zc();
    //图形面积
    public abstract double area();

    public TuXing() {
    }

    public TuXing(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "TuXing{" +
                "name='" + name + '\'' +
                '}';
    }
}
